/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JFrameEstoque.java
 *
 * Created on 29/10/2011, 11:10:41
 */
package visao;

/**
 *
 * @author David
 */
public class JFrameEstoque extends javax.swing.JFrame {

    /** Creates new form JFrameEstoque */
    public JFrameEstoque() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPaneResultadoEstoque = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jLabel18 = new javax.swing.JLabel();
        pnlDadosAnimal = new javax.swing.JPanel();
        lblPesquisa = new javax.swing.JLabel();
        cbxFiltro = new javax.swing.JComboBox();
        txtPesquisa = new javax.swing.JTextField();
        lblExibirEstoque = new javax.swing.JLabel();
        cbxFiltroEstoque = new javax.swing.JComboBox();
        txtResultadoProduto = new javax.swing.JTextField();
        chkExibir = new javax.swing.JCheckBox();
        btnBuscar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null}
            },
            new String [] {
                "Cod. Produto", "Descrição", "Fornecedor", "Telefone Forn.", "Qtd. Disponivel", "Unidade", "Valor do Custo", "Valor da venda", "Margem", "Valor em Estoque"
            }
        ));
        jScrollPaneResultadoEstoque.setViewportView(jTable1);

        jLabel18.setFont(new java.awt.Font("Verdana", 0, 18));
        jLabel18.setForeground(new java.awt.Color(102, 102, 255));
        jLabel18.setText("Controle de Estoque");
        jLabel18.setName("lblCadastroAnimal"); // NOI18N

        pnlDadosAnimal.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Dados do Animal", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 12), new java.awt.Color(51, 51, 51))); // NOI18N

        lblPesquisa.setFont(new java.awt.Font("Verdana", 0, 12));
        lblPesquisa.setForeground(new java.awt.Color(51, 51, 51));
        lblPesquisa.setText("Pesquisar por:");

        cbxFiltro.setFont(new java.awt.Font("Verdana", 0, 12));
        cbxFiltro.setForeground(new java.awt.Color(51, 51, 51));
        cbxFiltro.setMaximumRowCount(4);
        cbxFiltro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Código", "Nome ", "CPF", "Cidade", "Endereço" }));
        cbxFiltro.setFocusable(false);

        txtPesquisa.setFont(new java.awt.Font("Verdana", 0, 12));
        txtPesquisa.setForeground(new java.awt.Color(51, 51, 51));
        txtPesquisa.setToolTipText("");

        lblExibirEstoque.setFont(new java.awt.Font("Verdana", 0, 12));
        lblExibirEstoque.setForeground(new java.awt.Color(51, 51, 51));
        lblExibirEstoque.setText("Exibir produtos com estoque");

        cbxFiltroEstoque.setFont(new java.awt.Font("Verdana", 0, 12));
        cbxFiltroEstoque.setForeground(new java.awt.Color(51, 51, 51));
        cbxFiltroEstoque.setMaximumRowCount(4);
        cbxFiltroEstoque.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Maior Igual", "Menor Igual", "Igual" }));
        cbxFiltroEstoque.setFocusable(false);

        txtResultadoProduto.setFont(new java.awt.Font("Verdana", 0, 12));
        txtResultadoProduto.setForeground(new java.awt.Color(51, 51, 51));
        txtResultadoProduto.setToolTipText("");

        chkExibir.setFont(new java.awt.Font("Verdana", 0, 10));
        chkExibir.setForeground(new java.awt.Color(51, 51, 51));
        chkExibir.setText("Exibir somente produtos abaixo do estoque minimo");

        btnBuscar.setFont(new java.awt.Font("Verdana", 0, 12));
        btnBuscar.setForeground(new java.awt.Color(51, 51, 51));
        btnBuscar.setText("Buscar");

        javax.swing.GroupLayout pnlDadosAnimalLayout = new javax.swing.GroupLayout(pnlDadosAnimal);
        pnlDadosAnimal.setLayout(pnlDadosAnimalLayout);
        pnlDadosAnimalLayout.setHorizontalGroup(
            pnlDadosAnimalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDadosAnimalLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlDadosAnimalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(chkExibir)
                    .addGroup(pnlDadosAnimalLayout.createSequentialGroup()
                        .addGroup(pnlDadosAnimalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(pnlDadosAnimalLayout.createSequentialGroup()
                                .addComponent(lblPesquisa)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(cbxFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlDadosAnimalLayout.createSequentialGroup()
                                .addComponent(lblExibirEstoque)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cbxFiltroEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(pnlDadosAnimalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDadosAnimalLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtPesquisa, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(85, 85, 85))
                            .addGroup(pnlDadosAnimalLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(pnlDadosAnimalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(btnBuscar)
                                    .addComponent(txtResultadoProduto, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlDadosAnimalLayout.setVerticalGroup(
            pnlDadosAnimalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDadosAnimalLayout.createSequentialGroup()
                .addGroup(pnlDadosAnimalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtPesquisa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblPesquisa)
                    .addComponent(cbxFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosAnimalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblExibirEstoque)
                    .addComponent(cbxFiltroEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtResultadoProduto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosAnimalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(chkExibir)
                    .addComponent(btnBuscar))
                .addContainerGap(11, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 665, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jScrollPaneResultadoEstoque, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 645, Short.MAX_VALUE)
                        .addComponent(pnlDadosAnimal, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel18))
                    .addContainerGap()))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 584, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel18)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(pnlDadosAnimal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPaneResultadoEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 393, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(JFrameEstoque.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(JFrameEstoque.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(JFrameEstoque.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JFrameEstoque.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new JFrameEstoque().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnBuscar;
    private javax.swing.JComboBox cbxFiltro;
    private javax.swing.JComboBox cbxFiltroEstoque;
    private javax.swing.JCheckBox chkExibir;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JScrollPane jScrollPaneResultadoEstoque;
    private javax.swing.JTable jTable1;
    private javax.swing.JLabel lblExibirEstoque;
    private javax.swing.JLabel lblPesquisa;
    private javax.swing.JPanel pnlDadosAnimal;
    private javax.swing.JTextField txtPesquisa;
    private javax.swing.JTextField txtResultadoProduto;
    // End of variables declaration//GEN-END:variables
}
